<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>BzSys020_数据缺失监控系统</title>  
    
    <link rel="stylesheet" type="text/css" href="webpage/easyui/themes/default/easyui.css">  
    <link rel="stylesheet" type="text/css" href="webpage/easyui/themes/icon.css">  
    <link rel="stylesheet" type="text/css" href="webpage/easyui/demo/demo.css">  
    <script type="text/javascript" src="webpage/js/jquery-1.8.0.min.js"></script>  
    <script type="text/javascript" src="webpage/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="webpage/js/index.js" charset="utf-8"></script>
</head>  
<body>
    <h2>BzSys020_数据缺失监控系统</h2>  
    <a href="javascript:void(0)" class="easyui-linkbutton"  id="startBtn">开启监控</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" id="stopBtn">停止监控</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" id="editMail">修改邮箱</a> <!--李兆军 新添加-->
     
    <table id="dg" title="监控服务器列表"></table> 
       
    <div id="toolbar">  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newServer()">添加</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editServer()">编辑</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="destroyServer()">删除</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="dgReload()">刷新</a>  
    </div>  
                  
    <div id="dlg" class="easyui-dialog" style="width:400px;padding:10px 20px" closed="true" buttons="#dlg-buttons">  
        <div class="ftitle">监控对象服务器信息</div> 
         
        <form id="fm" method="post" novalidate>  
            <div class="fitem">  
                <input name="SERVER_ID" class="easyui-validatebox" type="hidden" >  
            </div>  
            <div class="fitem">  
                <label>服务器名字:</label>  
                <input name="SERVER_NAME" class="easyui-validatebox" required="true">  
            </div>  
            <div class="fitem">  
                <label>服务器URL:</label>  
                <input name="SERVER_URL" class="easyui-validatebox" required="true">  
            </div>  
            
            <div class="fitem">  
                <label>数据库用户名:</label>  
                <input name="DB_USERNAME" class="easyui-validatebox" required="true">  
            </div>
            <div class="fitem">  
                <label>登录密码:</label>  
                <input id="DB_PASSWORD" name="DB_PASSWORD" type="password" class="easyui-validatebox" required="true">  
            </div> 
            <div class="fitem">  
                <label>数据库名:</label>  
                <input name="DB_DATABASE_NAME" class="easyui-validatebox" required="true">  
            </div>  
            <div class="fitem">  
                <label>数据库表名:</label>  
                <input name="DB_TABLE_NAME" class="easyui-validatebox" required="true">  
            </div>
            <div class="fitem">  
                <label>字段名:</label>  
                <input name="DB_COLUMN_NAME" class="easyui-validatebox" required="true">  
            </div> 
            <div class="fitem">  
                <label>标准时间:</label>  
                <input name="DATA_IN_TIME" class="easyui-validatebox" required="true">  
            </div>
            
            	<!-- 真正的提交数据隐藏，将  DO_MONITOR_TIME_temp 的数据处理后填充DO_MONITOR_TIME-->
                <input name="DO_MONITOR_TIME" id="DO_MONITOR_TIME"   type="hidden" class="easyui-validatebox" >  
                
                
            <div class="fitem">  
                <label>执行时间:</label>  
                <input id="DO_MONITOR_TIME_temp" >   
            </div>
            
            <input name="pwd_is_changed" id="pwd_is_changed"   type="hidden" class="easyui-validatebox" >
               
       </form>  
    </div>  
    
    <!-- 李兆军添加  修改邮箱对话框-->
     <div id="dlg-EMAIL" class="easyui-dialog" style="width:400px;padding:10px 20px" closed="true" buttons="#dlg-email-buttons"> 
     		<div id="emailForm">
     				<div class="fitem">  
                		<label>请输入邮箱：</label>  
                		<input name="EMAIL" class="easyui-validatebox" required="true" validType="email">  
            		</div> 
      		 </div>
     </div>
    
    
    <div id="dlg-buttons">  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveServer()">Save</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">Cancel</a>  
    </div>  
 
   <div id="dlg-email-buttons">    
        <a href="javascript:void(0)" id="SaveEmailButtons" class="easyui-linkbutton"  iconCls="icon-ok">Save</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg-EMAIL').dialog('close')">Cancel</a>  
    </div>        
       
    <style type="text/css">  
        #fm{  
            margin:0;  
            padding:10px 30px;  
        }  
        .ftitle{  
            font-size:14px;  
            font-weight:bold;  
            padding:5px 0;  
            margin-bottom:10px;  
            border-bottom:1px solid #ccc;  
        }  
        .fitem{  
            margin-bottom:5px;  
        }  
        .fitem label{  
            display:inline-block;  
            width:80px;  
        }  
    </style>  
</body>  
</html>  